import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/iconfont.scss'
import '@/styles/reset.scss'
// 引入mint-ui组件库及其样式文件
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(Mint)

// 创建全局时间过滤器
Vue.filter('filterTime', function (time) {
  // console.log(typeof time)
  let timeObj = new Date(time)
  let y = timeObj.getFullYear()
  let m = timeObj.getMonth() + 1
  let d = timeObj.getDate()
  return y + '/' + m + '/' + d
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
